﻿using System.ComponentModel.DataAnnotations;

namespace GioHangViet.Models
{
    [Table("Publishers")]
    public class Publisher
    {
        [Key]
        [Required(ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorPublisherAlias")]
        [StringLength(200, ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorPublisherAliasLength")]
        [Display(ResourceType = typeof(Resources.Displaies), Name = "DisplayPublisherAlias")]
        public string Alias { get; set; }


        [Required(ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorPublisherName")]
        [StringLength(200, ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorPublisherNameLength")]
        [Display(ResourceType = typeof(Resources.Displaies), Name = "DisplayPublisherName")]
        public string Name { get; set; }
    }
}